Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2P: Limit peers option #1196

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

P2P: Limit peers option #1196

wants to merge 9 commits into from

Conversation

heifner
Copy link
Member

@heifner heifner commented Feb 24, 2025

New p2p-peer-limit

  • Does not require a new p2p protocol version. Works with existing peers.
  • Defaults to 6. Disabled if p2p-accept-transactions=true.
  • Of the specified p2p-peer-address, picks the best (p2p-peer-limit) peers to remain connected to.
  • All connections that have received a vote first from the connection are not disconnected.
  • All connections that have received a block first from the connection over the last 10 minutes are not disconnected.
  • The top (p2p-peer-limit) ping times for connections are not disconnected.

The following were added to connection status response:

  • start_time - when the connection was established.
  • unique_trx_count - number of transactions first received on connection.
  • unique_blk_count - number of blocks first received on connection.

Resolves #1155

@heifner heifner added the OCI Work exclusive to OCI team label Feb 24, 2025
@heifner heifner marked this pull request as draft February 24, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New option to limit the number of configured peers to remain connected to
1 participant